package com.jytc.framework.utils;

import java.util.List;

public class CheckUtils
{
	/**
	 * 检查对象是否为空


	 * @param obj
	 * @return true or false
	 */
	public static boolean isNull(Object obj)
	{

		if (obj == null || obj.toString().equalsIgnoreCase(""))
		{
			return true;
		}
		return false;
	}

	public static boolean isEmpty(List list)
	{
		if (list == null || list.size() == 0)
		{
			return true;
		}
		return false;
	}

	public static boolean isEmpty(String[] args)
	{
		if (args == null || args.length == 0)
		{
			return true;
		}
		return false;
	}
}
